//
//  Relationship.m
//  CslpodDictionary
//
//  Created by gtts on 13-4-24.
//  Copyright (c) 2013年 cslpod. All rights reserved.
//

#import "Relationship.h"

@implementation RelationshipDAO

const static NSString* tablename = @"dic_relationship";//表名

+ (Class)getBindingModelClass
{
    return [Relationship class];
}

+(const NSString *)getTableName
{
    return tablename;
}

@end

@implementation Relationship
@synthesize relationID;
@synthesize relationName;
@synthesize remark;

- (id)init
{
    self = [super init];
    if (self) {
        self.primaryKey = @"relationID";
    }
    return self;
}

- (id)initWithJsonDictionary:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.relationID = [dic objectForKey:@"relationID"];
        self.relationName = [dic objectForKey:@"relationName"];
        self.remark = [dic objectForKey:@"remark"];
    }
    return self;
}

@end
